<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<title>首页_明月夜の博客</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="shortcut icon" href="/static/images/bitbug_favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" href="/static/css/comments.css">
	<link href="/static/css/base.css" rel="stylesheet">
	<link href="/static/css/index.css" rel="stylesheet">
	<link href="/static/css/m.css" rel="stylesheet">
	<script src="/static/js/jquery.min.js" type="text/javascript"></script>
	<script src="/static/js/jquery.easyfader.min.js"></script>
	<script src="/static/js/scrollReveal.js"></script>
	<script src="/static/js/wangEditor.js"></script>
	<script src="/static/js/common.js"></script>
	<script src="/static/js/xcConfirm.js"></script>
</head>

<body>
	<header id="header">
		<!--menu begin-->
		<div class="menu">
			<nav class="nav" id="topnav">
				<h1 class="logo"><a href="/index">明月夜の博客</a></h1>
				<li><a href="/index">网站首页</a> </li>
				<li><a href="/list">文章列表</a>
					<ul class="sub-nav">
						{% for category in params.categories %}
                              <li>
                                  <a href="/list?category_id={{ category.id }}">{{ category.cate_name }}</a>
                              </li>
                          {% endfor %}
					</ul>
				</li>
				<li><a href="/photo">我的相册</a>
				</li>
				<li><a href="/time">时间轴</a> </li>
				<li><a href="/about">关于我</a> </li>
				<li><a href="/release">发表博客</a></li>
				<li><a href="/gbook">留言</a> </li>
			</nav>
		</div>
		<!--menu end-->
		{% if session.uid and session.uname %}
          <a id="login" target="_blank">欢迎:{{ session.uname }}</a>
          <a href="/logout" id="register" target="_blank">退出</a>
        {% else %}
          <a href="/login" id="login" target="_blank">登录</a>
          <a href="/register" id="register" target="_blank">注册</a>
        {% endif %}
		<!--mnav begin-->

		<div id="mnav">
			<h2><a href="/main" class="mlogo">明月夜の博客</a><span class="navicon"></span></h2>
			<dl class="list_dl">
				<dt class="list_dt"> <a href="/main">网站首页</a> </dt>
				<dt class="list_dt"> <a href="#">文章列表</a> </dt>
				<dd class="list_dd">
					<ul>
						{% for category in params.categories %}
                              <li>
                                  <a href="/list?category_id={{ category.id }}">{{ category.cate_name }}</a>
                              </li>
                          {% endfor %}
					</ul>
				</dd>
				<dt class="list_dt"> <a href="/photo">我的相册</a> </dt>
				<dt class="list_dt"> <a href="/time">时间轴</a> </dt>
				<dt class="list_dt"> <a href="/gbook">留言</a> </dt>
				<dt class="list_dt"> <a href="/about">关于我</a> </dt>
			</dl>
		</div>
		<!--mnav end-->
	</header>


	<article>
		<h1 class="t_nav">
			<p class="n1">文章</p>
		</h1>
		<div class="infosbox">
			<div class="newsview">
				<h3 class="news_title">{{ params.topic.title }}</h3>
				<div class="bloginfo">
					<ul>
						<li class="author"><a href="#">{{ params.topic.user.user_name }}</a></li>
						<li class="lmname"><a href="#">{{ params.topic.category.cate_name }}</a></li>
						<li class="timer">{{ params.topic.pub_date.strftime('%Y-%m-%d') }}</li>
						<li class="view">{{ params.topic.read_num }}已阅读</li>
						<li class="like">{{ params.topic.voke_users.count() }}</li>
					</ul>
				</div>
				<div class="tags"><a href="/list?category_id={{ params.topic.category_id }}" target="_blank">{{ params.topic.blogType.type_name }}</a> &nbsp; <a href="/about" target="_blank">小世界</a></div>
{#				<div class="news_about"><strong>简介</strong>web.py 是一个Python 的web 框架，它简单而且功能强大。web.py#}
{#					是公开的，无论用于什么用途都是没有限制的。而且相当的小巧，应当归属于轻量级的web 框架。但这并不影响web.py 的强大，而且使用起来很简单、很直接。</div>#}
				<div class="news_con">
                    {{ params.topic.content }}
				</div>
			</div>
			<div class="share">
				<p class="diggit">
					<a href="#">
						很赞哦！
					</a>(<b id="diggnum">13</b>)
				</p>
				<p class="dasbox"><a href="#" class="dashang" title="打赏，支持一下">打赏本站</a></p>
				<div class="hide_box"></div>
			</div>
			<div class="nextinfo">
				<p>上一篇：
                    {% if params.prevTopic %}
                      <a href="/info?topic_id={{params.prevTopic.id}}">
                        {{params.prevTopic.title}}
                      </a>
                      {% else %}
                      <a href="/list">返回列表</a>
                    {% endif %}
                </p>
				<p>下一篇：
                      {% if params.nextTopic %}
                      <a href="/info?topic_id={{params.nextTopic.id}}">
                        {{params.nextTopic.title}}
                      </a>
                      {% else %}
                      <a href="/list">返回列表</a>
                      {% endif %}
                </p>
			</div>
			<div class="news_pl">
				<h2>文章评论</h2>
				<ul>
					<div class="gbko">
						<div class="l_box f_l" style="padding:20px;">
							<div class="commentstitle">
								<h3 id="comments">到现在<span class="commentsnumber">有{{ params.number }}条评论</span></h3>
							</div>
							<ol class="commentlist">
                                {% for reply in params.replies %}
                                    <li>
                                        <div class="top"><a href='#'  class='url'>{{ reply.user.user_name }}</a>
                                            <span class="time"> @
                                                <a href="#" title="">{{ reply_time }}</a>
                                                <a href="#" class="replyComment">回复</a>
                                            </span>
                                        </div>
{#                                        <div><img alt='' src='/static/images/comments.gif'  height='32' width='32' /></div>#}
                                        <div class="body">
                                            <p>{{ reply.content }}</p>
                                        </div>
                                    </li>
                                {% endfor %}
							</ol>
                            <div id="commentform">
                                    <h3 id="respond">在这添加你的留言！</h3>
                                    <form action="/info" method="post">
                                        <dir id="editor"></dir>
                                        <br>
                                        <p>
                                            <textarea name="content" cols="80" rows="10" style="margin-left: 12px;margin-right: 12px"></textarea>
                                        </p>
                                        <p>
                                            <input id="id_article" name="article" type="hidden" value="1">
                                            <input name="topic_id" type="hidden" value="{{ params.topic.id }}">
                                            <input name="user_id" type="hidden" value="{{ session.uid }}">
                                            <input name="submit" type="submit" id="submit" tabindex="5" value="提交" class="button" />
                                        </p>
                                    </form>
							</div>
                     </div>
					</div>
				</ul>
			</div>
		</div>
        <div class="sidebar">
            <div class="zhuanti">
                <h2 class="hometitle">特别推荐</h2>
                <ul>
                  <li> <i><img src="/static/images/banner03.jpg"></i>
                    <p>Ubuntu下python开发环境配置 <span><a href="/info?topic_id=14">阅读</a></span> </p>
                  </li>
                  <li> <i><img src="/static/images/b04.jpg"></i>
                    <p>Python基础概念_2_基础概念<span><a href="/info?topic_id=19">阅读</a></span></p>
                  </li>
                  <li> <i><img src="/static/images/b05.jpg"></i>
                    <p>Python之if判断语句与while和for循环<span><a href="?topic_id=17">阅读</a></span></p>
                  </li>
                </ul>
              </div>
            <div class="tuijian">
            <h2 class="hometitle">推荐文章</h2>
            <ul class="tjpic">
              <i><img src="/static/images/toppic01.jpg"></i>
              <p><a href="/info?topic_id=7">python中打开TXT文件报错</a></p>
            </ul>
            <ul class="sidenews">
              <li> <i><img src="/static/images/b05.jpg"></i>
                <p><a href="/info?topic_id=13">python学习网址以及笔记</a></p>
                <span>2018-05-13</span>
              </li>
              <li> <i><img src="/static/images/a.jpg"></i>
                <p><a href="/info?topic_id=14">Ubuntu下python开发环境配置</a></p>
                <span>2018-05-13</span>
              </li>
              <li> <i><img src="/static/images/d.jpg"></i>
                <p><a href="/info?topic_id=17">Python之if判断语句与while和for循环</a></p>
                <span>2018-05-13</span>
              </li>
            </ul>
          </div>
            <div class="tuijian">
                <h2 class="hometitle">点击排行</h2>
                <ul class="tjpic">
                    {% for  topic in params.topics[0:1] %}
                    <i><img src="/static/{{ topic.images }}"></i>
                  <p><a href="/info?topic_id={{ topic.id }}">{{ topic.title }}</a></p>
                    {% endfor %}
                </ul>
                <ul class="sidenews">
                    {% for topic in params.topics[1:] %}
                        <li> <i><img src="/static/{{ topic.images }}"></i>
                        <p><a href="/info?topic_id={{ topic.id }}">{{ topic.title }}</a></p>
                        <span>{{ topic.pub_date.strftime('%Y-%m-%d') }}</span>
                        </li>
                    {% endfor %}
                </ul>
              </div>
            <div class="cloud">
            <h2 class="hometitle">标签云</h2>
            <ul>
              <a href="#">python</a> <a href="#">html5</a> <a href="#">linux</a> <a href="#">AI</a>
            </ul>
          </div>
            <div class="links">
            <h2 class="hometitle">友情链接</h2>
            <ul>
              <li><a href="#" target="_blank">Python</a></li>
              <li><a href="#" target="_blank">爬虫</a></li>
              <li><a href="#" target="_blank">人工智能改变世界</a></li>
            </ul>
          </div>
            <div class="guanzhu" id="follow-us">
                <h2 class="hometitle">喜欢我 关注我！</h2>
                <ul>
                  <li class="sina"><a href="#" target="_blank"><span>微信号</span>XXXXXX</a></li>
                  <li class="tencent"><a href="#" target="_blank"><span>微博号</span>XXXXXX</a></li>
                  <li class="qq"><a href="#" target="_blank"><span>QQ号</span>XXXXXX</a></li>
                  <li class="email"><a href="#" target="_blank"><span>邮箱帐号</span>XXXXXX</a></li>
                  <li class="wxgzh"><a href="#" target="_blank"><span>咨询电话</span>xxxxxxxxxxx</a></li>
                </ul>
              </div>
        </div>
	</article>
	<footer id="footer">
		<p>Design by <a href=# target="_blank">个人博客</a> <a href="#">备XXXXXXXX号-1</a></p>
	</footer>
	<a href="#" class="cd-top">Top</a>
</body>

</html>